package project.rbac.dao;

import project.rbac.domain.entity.BaseEntity;

import java.util.Collection;

/**
 * 数据访问层-通用数据接口
 *
 * @author 刘嘉薏
 * @since 2025/6/15 14:21
 */
public interface IBaseDao<Entity extends BaseEntity> {
    boolean existsById(int id);

    Entity findById(int id);

    Collection<Entity> list();

    Entity save(Entity entity);

    Entity delete(int id);
}
